package Package.Text.Test3;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test3 {
    public static final void Test3() throws IOException {
        FileInputStream fis=new FileInputStream("D:\\insert\\01.png");
//        创建流输出对象
        FileOutputStream fos=new FileOutputStream("C:\\Users\\user\\Downloads\\01.png");
        byte[] bys=new byte[1024];
        int len;
        while ((len=fis.read(bys))!=-1){
            fos.write(bys,0,len);
        }
        fos.close();
        fis.close();
    }
}
